package com.guiji.quartz.task;

import com.guiji.quartz.domain.Aninews;
import com.guiji.quartz.domain.Investing;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @program: cms-vue-plus
 * @description:
 * @author: gaoX
 * @date 2021/11/18 11:36
 */
@Component("investingTask")
public class InvestingTask {
	private static final Logger log = LoggerFactory.getLogger(InvestingTask.class);

	public void investingTask() throws Exception {
		Long startTime = System.currentTimeMillis();
		Investing investing = new Investing();
		try {
			investing.mainMethod();
		} catch (Exception e) {
		} finally {
			log.info("InvestingTask-end-:{}", System.currentTimeMillis() - startTime);
		}

	}
}
